package com.dc.dbus.session.exception;

public class RemoteException extends RuntimeException {

	private static final long serialVersionUID = 1L;
	
	protected final int errorCode;

	public RemoteException(int errorCode) {
		super(String.valueOf("errorCode:" + errorCode));
		this.errorCode = errorCode;
	}
	
	public RemoteException(int errorCode, String msg) {
		super(msg);
		this.errorCode = errorCode;
	}
	
	public int getErrorCode() {
		return this.errorCode;
	}
}
